use "Table7data.dta"
ssc install outreg2
*********************************HTE********************************************

xtreg log_grass_prop log_budgetmwheat log_budgetmcotton log_budgetmcorn c.log_budgetmwheat#i.Farmsize_dummy c.log_budgetmcotton#i.Farmsize_dummy  c.log_budgetmcorn#i.Farmsize_dummy i.state_fips#c.year, fe

outreg2 using DID3.tex,append ctitle(Farmsize) label title("Table 2: HTE Impact of Farmland Conservation on Total Grassland"\label{tab1})


xtreg log_grass_prop log_budgetmwheat log_budgetmcotton log_budgetmcorn c.log_budgetmwheat#i.tenancy_dummy c.log_budgetmcotton#i.tenancy_dummy  c.log_budgetmcorn#i.tenancy_dummy i.state_fips#c.year, fe

outreg2 using DID3.tex,append ctitle(Tenancy) label title("Table 2: HTE Impact of Farmland Conservation on Total Grassland"\label{tab1})

xtreg log_grass_prop log_budgetmwheat log_budgetmcotton log_budgetmcorn c.log_budgetmwheat#i.black_dummy c.log_budgetmcotton#i.black_dummy  c.log_budgetmcorn#i.black_dummy i.state_fips#c.year, fe


outreg2 using DID3.tex,append ctitle(Race(Black)) label title("Table 2: HTE Impact of Farmland Conservation on Total Grassland"\label{tab1})


xtreg log_grass_prop log_budgetmwheat log_budgetmcotton log_budgetmcorn c.log_budgetmwheat#i.irrigation_dummy c.log_budgetmcotton#i.irrigation_dummy  c.log_budgetmcorn#i.irrigation_dummy i.state_fips#c.year, fe

outreg2 using DID3.tex,append ctitle(Irrigation) label title("Table 2: HTE Impact of Farmland Conservation on Total Grassland"\label{tab1})


xtreg log_grass_prop log_budgetmwheat log_budgetmcotton log_budgetmcorn c.log_budgetmwheat#i.nonfarm_dummy c.log_budgetmcotton#i.nonfarm_dummy  c.log_budgetmcorn#i.nonfarm_dummy i.state_fips#c.year, fe

outreg2 using DID3.tex,append ctitle(Nonfarm) label title("Table 2: HTE Impact of Farmland Conservation on Total Grassland"\label{tab1})


